from django.conf.urls import url
from django.contrib import admin
from rest_framework_jwt.views import obtain_jwt_token

from . import views

urlpatterns = [
     url(r'^usernames/(?P<username>\w{5,20})/count/$',views.UserNameCountView.as_view()),
     url(r'^mobiles/(?P<mobile>\w{5,20})/count/$',views.MobileCountView.as_view()),
     url(r'^users/$',views.UserView.as_view()),
     url(r'^authorizations/$',obtain_jwt_token),
     url(r'^user/$',views.UserDetailView.as_view()),
     url(r'^emails/$',views.UserEmailView.as_view()),
     url(r'^emails/verification/$',views.EmailVirifyView.as_view()),
     url(r'^areas/(?P<pk>\d*)/?$',views.AreasView.as_view()),
     # url(r'^areas/addresses/$',views.AddressesView.as_view()),
     url(r'^addresses/(?P<pk>\d*)/?$',views.AddressesView.as_view()),
     url(r'^addresses/(?P<pk>\d+)/status/$',views.DefautView.as_view()),

]

